package ru.spb.osll.myfit.client.widget;

import ru.spb.osll.myfit.common.IncludeError;
import ru.spb.osll.myfit.common.PageElement;

public class IncludeErrorWidget extends IncludeWidget {

	
	public IncludeErrorWidget(GWTWidgetFactory gwtWidgetFactory, IncludeError include) {
		super(gwtWidgetFactory, include);
	}

	@Override
	public PageElement getPageElement() {
		return new IncludeError(includePath, includePage);
	}
	
	@Override
	protected void setNeedfulStyles() {
		vpanel.addStyleName(IStyleConstants.INCLUDE_ERROR_STYLE_NAME);	
	}
}
